<?php
defined('BASEPATH') OR exit('No direct script access allowed');

define('SMARTY_TPL', VIEWPATH.'templates'.DIRECTORY_SEPARATOR);
define('SMARTY_TPC', VIEWPATH.'compile'.DIRECTORY_SEPARATOR);
define('SMARTY_CACHE', VIEWPATH.'cache'.DIRECTORY_SEPARATOR);
define('SMARTY_CONFIG', VIEWPATH.'config'.DIRECTORY_SEPARATOR);

// 是否启用缓存
$config['caching'] = false;

// 缓存更新周期
$config['cache_lifetime'] = 1*24*3600;

// 模板目录
$config['template_dir'] = SMARTY_TPL;

// 编译目录
$config['compile_dir'] = SMARTY_TPC;

// 缓存目录
$config['cache_dir'] = SMARTY_CACHE;

// 配置目录
$config['config_dir'] = SMARTY_CONFIG;

// 是否生成编译子目录
$config['use_sub_dirs'] = true;

// 模板变量界定符
$config['left_delimiter'] = '<{';
$config['right_delimiter'] = '}>';